package com.service;

import java.util.List;


import com.entity.Goods;
import com.entity.Shop;

public interface GoodsService {
	List<Goods> selectAllGoods();
	Goods selectGoodById(Integer good_id);
	Shop selectShopByGoodId(Integer good_id);
	List<Goods> selectAllGoodsByShopId(Integer shop_id);
	List<Goods> selectAllGoodsByType(String type);
	int updateIsSale(Integer good_id);
	int insertFile(Goods goods);
	
	int delete(Integer good_id); 
	int update(Goods goods); 
	int updatebuy(Integer good_id,Integer buyNum,Integer goodsNum);
	int updatebefore(Integer good_id,Integer goodsNum);
	List<Goods> selectAllGoodssale(Integer shop_id);
	List<Goods> selectAllGoodsnosale(Integer shop_id);
	List<Goods> selectGoodsByName(String selector);
	int updateGoodState(Integer goodid);
	List<Goods> selectUniqueGoods(String type);
}
